home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
moden
/
adgetnum.int
< prev
next >
Wrap
Text File
|
1996-04-08
|
2KB
|
75 lines
{$G+,X+,F+,T-}
{Conditional defines that may affect this unit}
{$I AWDEFINE.INC}
{*********************************************************}
{* ADGETNUM.PAS 1.01 *}
{* Copyright (c) TurboPower Software 1995 *}
{* All rights reserved. *}
{*********************************************************}
unit AdGetNum;
{-For getting phone numbers from the user or a phonebook}
interface
uses
SysUtils, WinTypes, WinProcs, Messages,
Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons,
OoMisc, AdMisc, AdPBook, AdSelNum, AdExcept;
type
{.Z+}
{form for entering or choosing a phone number}
TGetNumberForm = class(TForm)
GroupBox1: TGroupBox;
Label1: TLabel;
PhoneCombo: TComboBox;
SelectBtn: TBitBtn;
OkBtn: TBitBtn;
CancelBtn: TBitBtn;
procedure OkBtnClick(Sender: TObject);
procedure SelectBtnClick(Sender: TObject);
protected
Phonebook : TApdPhonebook;
EditNum : PString;
public
constructor Create(const AOwner : TComponent; const PB : TApdPhonebook; var EditSt : String);
end;
{.Z-}
{component for selecting or choosing a phone number}
TApdPhoneNumberSelector = class(TCommonDialog)
protected {private}
{.Z+}
FPhonebook : TApdPhonebook;
FSelNum : String;
procedure Notification(AComponent : TComponent; Operation : TOperation); override;
public
constructor Create(AOwner : TComponent); override;
{.Z-}
function Execute : Boolean;
property SelectedNumber : String
read FSelNum;
published
property Phonebook : TApdPhonebook
read FPhonebook write FPhonebook;
end;
const
{maximum number of entries in phone number history list}
NumberHistLen = 20;
var
{phone number history list strings}
NumberHistory : TStringList;